import config from '@/config'
import store from '@/store'

export default {
  backgroundColor: 'transparent',
  animation: false,
  tooltip: {
    trigger: 'item',
    formatter: function (val) {
      return '<div><h5>表具ID</h5>' + val.name + '</div>'
    }
  },
  bmap: {
    center: store.getters.mapCenter,
    zoom: 13,
    roam: false,
    mapStyle: {
      styleJson: config.mapStyleJson
    }
  },
  series: [{
    type: 'effectScatter',
    coordinateSystem: 'bmap',
    animation: false,
    data: [],
    showEffectOn: 'render',
    rippleEffect: {
      brushType: 'stroke'
    },
    symbolSize: function (val) {
      return val[2] * 1.5
    },
    itemStyle: {
      color: '#33ff00'
    },
    shadowBlur: 0,
    shadowColor: '#333',
    zlevel: 3
  }]
}
